import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import user from './modules/user'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
      sidebar: state => state.app.sidebar,
      avatar: state => state.user.avatar,
      routers: state => state.app.menus,
      headLogo: state => state.app.headLogo,
      menuOpends: state => state.app.menuOpends,
      defaultMenu: state => state.app.defaultMenu,
      sid: state => state.user.userInfo.sid
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    app,
    user
  }
})
